﻿using CodePlex.SharePoint.Explorer.ViewModels;
using JScriptSuite.BrowserHost;
using JScriptSuite.BrowserHost.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodePlex.SharePoint.Explorer
{
    class Program
    {
        readonly static string sharePointLibrary = "http://<server>/<web>/<Documentlibrary>/<Folder>";

        [STAThread]
        static void Main(string[] args)
        {
            IBrowserHost host = Host.CreateBrowserHost();
            new WebDavPageFactory(sharePointLibrary + "/{0}.aspx", /* or SharePointPageFactory */
                sharePointLibrary + "/{0}.js", false)
                .AddPage(host, "CodePlex.SharePoint.Explorer")
                .Add(App.Start, "StartExplorer")
                .Navigate();
            host.Run();
        }
    }
}
